<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/share/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>用户详情</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%@ include file="/WEB-INF/share/easyuilist.jsp"%>
<script type="text/javascript">
	    var keyValue = request('id');
	    var instanceId = "";
	    var formId = "";
	    $(function () {
	    })
	    //保存表单
	    function AcceptClick() {
	        if (!$('#form1').Validform()) {
	            return false;
	        }
	        var postData = $("#form1").GetWebControls(keyValue);
	        postData["id"] = keyValue;
	        $.SaveForm({
	            url: "${ctx}/agentxh/save",
	            param: postData,
	            loading: "正在保存数据...",
	            success: function (data) {
	                $.currentIframe().$("#gridTable").trigger("reloadGrid");
	            }
	        })
	    }
	</script>
</head>
<body>
	<form id="form1">
		<input id="agentid" name="agentid" value="${ub.id}" type="hidden" />
		<div style="margin-left: 10px; margin-right: 10px;">
			<div id="BaseInfo" class="tab-pane active"
				style="padding-right: 30px;">
				<table class="form">
					<tr>
						<td class="formTitle">代理</td>
						<td class="formValue">
							<input id="account" value="${ub.username}" type="text"
							class="form-control" readonly />
						</td>
					</tr>
					<tr>
						<td class="formTitle">数量<font face="宋体">*</font></td>
						<td class="formValue"><input id="num"
							value="" type="text"
							class="form-control" placeholder="请输入数量" isvalid="yes"
							checkexpession="Num" /></td>
					</tr>
					<tr>
						<td class="formTitle">价格<font face="宋体">*</font></td>
						<td class="formValue"><input id="money"
							value="" type="text" class="form-control"
							placeholder="请输入价格" checkexpession="Double" isvalid="yes"/></td>
					</tr>
					<tr>
						<td class="formTitle">使用次数<font face="宋体">*</font></td>
						<td class="formValue"><input id="usecount"
							value="" type="text"
							class="form-control" placeholder="请输入数量" isvalid="yes"
							checkexpession="Num" /></td>
					</tr>
					<tr>
						<td class="formTitle">使用天数<font face="宋体">*</font></td>
						<td class="formValue"><input id="usetime"
							value="" type="text"
							class="form-control" placeholder="请输入数量" isvalid="yes"
							checkexpession="Num" /></td>
					</tr>
				</table>
			</div>
		</div>
	</form>
</body>
</html>
